<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<!-- 订单列表 -->
  <div class="list-div" id="listDiv">
<?php endif; ?>
	<table cellpadding="3" cellspacing="1">
	  <tr>
	    <th>订单编号</th>
	    <th>用户id</th>
	    <th>用户名</th>
	    <th>用户绑定手机</th>
	    <th>订单总额</th>
	    <th>订单生成时间</th>
	    <th>订单提成比例</th>
	    <th>订单提成</th>
	    <th>订单提现状态</th>
	  </tr>
	<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'val');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['val']):
?>
	 <tr align="center" >
	    <td><?php echo $this->_var['val']['order_sn']; ?></td>
	    <td><?php echo $this->_var['val']['user_id']; ?></td>
	    <td><?php echo $this->_var['val']['user_name']; ?></td>
	    <td><?php echo $this->_var['val']['mobile_phone']; ?></td>
	    <td><?php echo $this->_var['val']['goods_amount']; ?></td>
	    <td><?php echo $this->_var['val']['add_time']; ?></td>
	    <td><?php echo $this->_var['val']['commissions_ratio']; ?></td>
	    <td><?php echo $this->_var['val']['commissions_price']; ?></td>
	    <td><?php echo $this->_var['val']['withdraw_status']; ?></td>
  	</tr>
  	<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	</table>
	<input type="hidden" name="status" id="status" value="<?php echo $this->_var['status']; ?>" />
	<input type="hidden" name="user_id" id="user_id" value="<?php echo $this->_var['user_id']; ?>" />
	<!-- 分页 -->
	<table id="page-table" cellspacing="0">
	  <tr>
	    <td align="right" nowrap="true">
	    <?php echo $this->fetch('page.htm'); ?>
	    </td>
	  </tr>
	</table>
  </div>
<?php if ($this->_var['full_page']): ?>
<script language="JavaScript">
listTable.recordCount = <?php echo $this->_var['filter']['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['filter']['page_count']; ?>;
listTable.query = "query1";
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

    /**
     * 搜索
     */
    function searchUser()
    {
    	listTable.filter['status'] = document.forms['searchForm'].elements['status'].value;
    	listTable.filter['user_id'] = document.forms['searchForm'].elements['user_id'].value;
        listTable.filter['page'] = 1;
        listTable.loadList();
    }



</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>